﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.BangDiemDanh>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>

    <legend>
        Cập Nhật Thông Tin Bảng Điểm Danh
    </legend>
    
    <%using (Html.BeginForm("Edit", "DiemDanh", new { area = "Admin", @maLopHoc = Model.HocVien_LopReference.Value.MaLopHoc }, FormMethod.Post, new { @class = "form-horizontal", @id = "formNew", @name = "formNew", enctype = "multipart/form-data" }))
      {%>
        <%: Html.ValidationSummary(true)%>
        
            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Tên Học Viên:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.HocVien_LopReference.Value.HocVienReference.Value.TaiKhoanReference.Value.HoTen, new { @readonly = true })%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Ngày Học:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.Ngay, new { @readonly = true })%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Ca Học:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.PhanCong.CaHoc , new { @readonly = true })%>
                </div>
            </div>

            <%--<div class="control-group">
                <label class="control-label" for="strFrom">
                    Tên Lớp Học:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.HocVien_LopReference.Value.LopHocReference.Value.TenLopHoc, new { @readonly = true })%>
                </div>
            </div>--%>

            <%--<div class="control-group">
                <label class="control-label" for="strFrom">
                    Số Thành Viên:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.HocVien_LopReference.Value.SoThanhVien, new { @readonly = true })%>
                </div>
            </div>--%>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Vắng Mặt:</label>
                <div class="controls">
                    <%= Html.RadioButtonFor(t => t.VangMat, 0, new { Checked = "checked" })%> Hiện Diện
                    <%= Html.RadioButtonFor(t => t.VangMat, 1)%> Có Phép
                    <%= Html.RadioButtonFor(t => t.VangMat, 2)%> Không Phép
                    <%= Html.ValidationMessageFor(t => t.VangMat)%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Lý Do:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.LyDo, new { @class = "h30", placeholder = "Lý Do..." })%>
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    <button id="btnUpdate" name="btnUpdate" type="submit" class="btn btn-primary"><i class="icon-refresh icon-white"></i>Cập Nhật</button>
                </div>
            </div>

    <% } %>

    <div>
        <%-- Chỗ này, làm sao để truyền về lại mã lớp học --%>
        <a href="<%=ResolveUrl("~/Admin/DiemDanh/Index/?maLopHoc=")%><%=Model.HocVien_LopReference.Value.MaLopHoc %>">
        <!--cach 2-->
        <%--<%= Html.ActionLink("Index", "Index", "DiemDanh", new { area = "Admin", id = Model.HocVien_LopReference.Value.MaLopHoc }, new { @class = "btn btn-primary" })%>--%>
        <button class="btn btn-primary">
        <i class="icon-reply"></i> 
            Quay lại danh sách
        </button></a>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

